//============================================================================
// Name        : DesignPattern.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include "strategy.hpp"

using namespace strate;

int main() {

    using std::cout;
    using std::endl;

    //--------------------STRATEGY------------------
    Strategy str;

    //a)set Square algorithm
    str.set_figure(Square::getSingleton());
    cout<<str.show_field()<<endl;

    //b)set Triangle algorithm
    str.set_figure(Triangle::getSingleton());
    cout<<str.show_field()<<endl;

    //b)set Round algorithm
    str.set_figure(Round::getSingleton());
    cout<<str.show_field()<<endl;
    //-----------------------------------------------

    return 0;
}
